﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NCron.Framework;

namespace Base
{
    public abstract class JobBase : ICronJob
    {
        protected static IServiceStrategy strategy;
        protected static readonly log4net.ILog _log = log4net.LogManager.GetLogger("Job.GetRate.Logging");

        #region ICronJob 成员

        public void Execute()
        {
            try
            {
                strategy.Do();
            }
            catch (Exception ex)
            {
                ex.ToString();
            }
        }

        public abstract void Initialize();

        #endregion

        #region IDisposable 成员

        public void Dispose()
        {

        }

        #endregion

    }
}
